package com.xiaodu.acer.phoneplay.presenter.contract;

import com.xiaodu.acer.phoneplay.bean.PageBean;
import com.xiaodu.acer.phoneplay.bean.Subject;
import com.xiaodu.acer.phoneplay.bean.SubjectDetail;

import io.reactivex.Observable;
import library.base.BaseBean;
import library.base.BaseModel;
import library.base.BaseView;

/**
 * @author 小杜 QQ:1392229149
 * @name ShouJiZhuShou
 * @class name：com.xiaodu.acer.phoneplay.presenter.contract
 * @class describe
 * @time 2018/1/14 0:27
 * @change
 * @chang time
 * @class describe
 */
public interface SubjectContract {

    interface View extends BaseView {
        void showSubjects(PageBean<Subject> subjects);
        void onLoadMoreComplete();

        void showSubjectDetail(SubjectDetail detail);
    }


    interface Model extends BaseModel {
        Observable<BaseBean<PageBean<Subject>>> getSubjects(int page);

        Observable<BaseBean<SubjectDetail>> getSubjectDetail(int id);

    }

}
